package com.baidu.demo1;

public class Computer {
    private String cpu; //cpu(中央处理器)
    public String ram; // 内存
    String disk; //磁盘
    public Computer(String cpu, String ram, String disk) {
        this.cpu = cpu;
        this.ram = ram;
        this.disk = disk;
    }

    public void Boot() {
        System.out.println("开机");
    }

    public void shutdown() {
        System.out.println("关机");
    }
}
